//
//  CityActivityUserViewController.m
//  cityStar
//
//  Created by wangjia on 15/4/15.
//  Copyright (c) 2015年 tiny. All rights reserved.
//

#import "CityActivityUserViewController.h"
#import "HTDefine.h"
#import "ColorUtil.h"

@interface CityActivityUserViewController ()

@end

@implementation CityActivityUserViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"参加活动的人";
    [self addBackButton];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 25;
}

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, KScreenWidth, 25)];
    view.backgroundColor = [UIColor colorWithRed:254.0/255.0 green:239.0/255.0 blue:219.0/255.0 alpha:1];
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(15, 0, KScreenWidth-15, 25)];
    label.textColor = [ColorUtil colorFromHexRGB:@"666666"];
    label.font = [UIFont systemFontOfSize:13];
    if (section == 0) {
        label.text = @"活动发起人";
    }
    if (section == 1) {
        label.text = @"参加活动的人";
    }
    [view addSubview:label];
    return view;
}

@end
